//
//  MyViewController.m
//  sleepTest2
//
//  Created by apple on 2017/8/5.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "MyViewController.h"
#define bgColor [UIColor colorWithRed:34/255.0 green:38/255.0 blue:65/255.0 alpha:1]
#define lightBlueColor [UIColor colorWithRed:113/255.0 green:123/255.0 blue:172/255.0 alpha:1]
#define whiteBlueColor [UIColor colorWithRed:188/255.0 green:195/255.0 blue:232/255.0 alpha:1]

@interface MyViewController ()

@end

@implementation MyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 为页面添加标题和背景色
    self.title = @"我的";
    self.view.backgroundColor = [UIColor colorWithRed:34/255.0 green:38/255.0 blue:65/255.0 alpha:1];
    
    // 定义一个label
    UILabel *noteLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 200, 35)];
    noteLabel.text = @"这是 我的 页面";
    noteLabel.textColor = whiteBlueColor;
    [self.view addSubview:noteLabel];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
